﻿<div ng-controller="loginCtrl">
<!-- <div ng-controller="loginCtrl" ng-show='user_logout'> -->
    <div class="login-container animated fadeInDown">
        <form class="loginbox bg-white" name="loginForm" novalidate>
            <div class="loginbox-title">登录</div>
            <div class="loginbox-social">
                <div class="social-buttons text-align-center">
                    <img ng-src="assets/img/user.png">
                </div>
            </div>
            <div class="loginbox-or">
                <div class="or-line"></div>
                <div class="or">请输入</div>
            </div>
            <!-- 用户名 -->
            
            <div class="loginbox-textbox">
                <p class="error colorRed" ng-if="loginForm.name.$error.required && loginForm.name.$touched">请输入用户名</p>
                <!-- <input type="text" class="form-control" placeholder="用户名" ng-model="userData.name" id="name" name="name" required/>
                <span class="glyphicon glyphicon-ok form-control-feedback colorGreen" ng-show="loginForm.name.$dirty && loginForm.name.$valid"></span> -->
                <span class="input-icon icon-right">
                    <input type="text" class="form-control" placeholder="用户名" ng-model="userData.name" id="name" name="name" required>
                    <i class="glyphicon glyphicon-ok form-control-feedback colorGreen" ng-show="loginForm.name.$dirty && loginForm.name.$valid"></i>
                </span>
            </div>
            <!-- 密码 -->
            <div class="loginbox-textbox">
                <p class="error colorRed" ng-if="loginForm.password.$error.required && loginForm.password.$touched">请输入密码</p>
                <p class="colorRed">
                    <span ng-show="loginForm.password.$invalid">
                        <span ng-show="loginForm.password.$error.minlength">密码长度不小于6</span>
                        <span ng-show="loginForm.password.$error.maxlength">密码长度不超过20</span>
                    </span>
                </p>
                <!-- <input type="text" class="form-control" placeholder="密码" ng-model="userData.password" d="password" name="password" ng-minlength="6" ng-maxlength="20" required/>
                <span class="glyphicon glyphicon-ok form-control-feedback colorGreen" ng-show="loginForm.password.$dirty && loginForm.password.$valid"></span> -->
                <span class="input-icon icon-right">
                    <input type="password" class="form-control" placeholder="密码" ng-model="userData.password" d="password" name="password" ng-minlength="6" ng-maxlength="20" required>
                    <i class="glyphicon glyphicon-ok form-control-feedback colorGreen" ng-show="loginForm.password.$dirty && loginForm.password.$valid"></i>
                </span>
            </div>
            <!-- <div class="loginbox-forgot">
                <a href="">Forgot Password?</a>
            </div> -->
            <div class="loginbox-submit">
                <input type="button" class="btn btn-primary btn-block" value="登录" ng-click="userLogin()">
                <!-- <input type="button" class="btn btn-primary btn-block" value="登录" ui-sref="app.actual"> -->
            </div>
           <!--  <div class="loginbox-signup">
                <a ui-sref="register">注册</a>
            </div> -->
        </form>
    </div>   
</div>
